<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="./node_modules/vue/dist/vue.js"></script>
<style>
    .bounce-enter-active {
        animation: bounce-in 1s;
    }

    .bounce-leave-active {
        animation: bounce-in 1s reverse;
    }

    @keyframes bounce-in {
        0% {
            transform: scale(0);
        }

        50% {
            transform: scale(1.5);
        }

        100% {
            transform: scale(1);
        }
    }
</style>

<body>
    <div id="demo">
        <button @click="show=!show">放大缩小动画</button>
        <transition name="bounce">
            <p v-show="show">liyiruo的动画</p>
        </transition>
    </div>
</body>
<script>
    new Vue({
        el: '#demo',
        data: {
            show: true
        }
    })
</script>

</html>